@(goods: List[Good])

@main("Good database") {
    <h2>Insert a kitty cat here:</h2>
    @helper.form(action = routes.GoodController.insert()) {
        <input type="hidden" id="id" name="id" value="0">
        <input name="name" type="text" placeholder="enter index name"/>
        <input name="price" type="text" placeholder="enter the price"/>
        <input name="cost" type="text" placeholder="enter the cost"/>
        <input type="submit"/>
    }

    <h2>Previously inserted cats:</h2>
    <table>
        <tr><th>Id</th><th>Name</th><th>Price</th><th>Cost</th></tr>
        @for(g <- goods){
            <tr><td>@g.id</td><td>@g.name</td><td>@g.price</td><td>@g.cost</td></tr>
        }
    </table>
}